package com.zxj.friend.domain.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.zxj.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 竞赛报名表
 * </p>
 *
 * @author zxj2022
 * @date 2025/01/08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user_exam")
@Schema(name="UserExam对象", description="竞赛报名表")
public class UserExam extends BaseEntity implements Serializable {

    /** 串行版本 UID */
    @Serial
    private static final long serialVersionUID = 1L;

    /** 用户竞赛关系id */
    @Schema(description = "用户竞赛关系id")
    @TableId(value = "user_exam_id", type = IdType.ASSIGN_ID)
    private Long userExamId;

    /** 用户 ID */
    @Schema(description = "用户id")
    private Long userId;

    /** 竞赛id */
    @Schema(description = "竞赛id")
    private Long examId;

    /** 得分 */
    @Schema(description = "得分")
    private Integer score;

    /** 排名 */
    @Schema(description = "排名")
    private Integer examRank;
}
